package com.lhc.nacosprovider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lhc.nacosprovider.annotation.needAuth;
import com.lhc.nacosprovider.entity.DBTestEntity;
import com.lhc.nacosprovider.mapper.DBTestMapper;
import com.lhc.nacosprovider.service.DBTestService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuchaoqun
 * @date 2022/6/25
 * @Description 数据库测试
 */
@Service
public class DBTestServiceImpl extends ServiceImpl<DBTestMapper, DBTestEntity> implements DBTestService {

    @Override
    public List<DBTestEntity> getDataEndWithToday() {
        return baseMapper.getDataEndWithToday();
    }

    @Override
    @needAuth
    public String annotationTest() {
        System.out.println("注解测试");
        return "注解实现Aop看控制台";
    }
}
